
<div id="shop_cart">
    <h2>Shopping cart</h2>
    <h3 style="padding-bottom: 20px;"><?php echo isset($empty_buy) && $empty_buy != '' ? $empty_buy : '';?></h3>
    <h3 style="padding-bottom: 20px;"><?php echo isset($suss) && $suss != '' ? $suss : '';?></h3>
    <form action="<?php echo $baseURL;?>default/shopping_cart/update" method="post">
    <table cellspacing="0">
        <tr>
            <th style="width: 10%;"> STT </th>
            <th style="width: 40%;"> Product name</th>
            <th style="width: 20%;"> Price($) </th>
            <th style="width: 10%;"> Quatity </th>
            <th style="width: 30%;"> Money($)</th>
            <th style="width: 10%;"> Delete</th>
        </tr>
        <?php 
        $i = 1;
        foreach ($list_cart as $product) {?>
        <tr>
            <td><?php echo $i; $i++; ?></td>
            <td><?php echo $product['name']; ?></td>
            <td><?php echo $product['price']; ?></td>
            <td>
                
                    <input type="text" size="3" name="quatity[]" value="<?php echo $product['qty']; ?>">
               
            </td>
            <td><?php echo $product['money']; ?></td>
            <td style=" text-align: center;">
                <a href="<?php echo $baseURL;?>default/shopping_cart/delete/<?php echo $product['id'];?>">
                <span style = "font-weight: bold; color: red; font-size: 16px;">X</span>
                </a>
            </td>
        </tr>
        <?php } ?>
        <tr>
            <td colspan="6">Total: <span style="font-size: 18px; font-weight: bold; color: #000;">
             <?php echo $this->session->userdata('total_money')."$"; ?>
            </span> </td>
        </tr>
    </table>
        <div id="ac_shopping">
            <input type="submit" value="Update" name="update_sc" class="bt" style="border: none;">
        <a href="<?php echo $baseURL;?>default/shopping_cart/clearn" class="bt">Clearn</a>
        <div style="height: 10px;"></div>
        <a href="<?php echo $baseURL;?>" class="link_sc">Buy continue</a>
        <a href="<?php echo $baseURL;?>default/shopping_cart/checkout#cate" class="link_sc">Checkout</a>
        </div>
    </form>
</div>